package com.ciaojian.worker.model.param;

import cn.hutool.core.bean.BeanUtil;
import com.ciaojian.core.model.HairArchiveImg;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author oxiny
 */
@Data
@Builder
@Accessors(chain = true)
public class HairArchiveImgDTO {
    @ApiModelProperty(value = "档案ID",hidden = true)
    private Integer archiveId;

    @ApiModelProperty("照片路径")
    private String imgUrl;

    public HairArchiveImg convert() {
        HairArchiveImg hairArchive = HairArchiveImg.builder().build();
        BeanUtil.copyProperties(this, hairArchive);
        return hairArchive;
    }

}
